package com.huibo.aigou.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.huibo.aigou.base.bo.AjaxResult;

@FeignClient(value="COMMON-SERVER",fallbackFactory=FallbackHandler.class)
@RequestMapping("/redis")
public interface RedisClient {
	
	@GetMapping("/get")
	public String get(@RequestParam("key") String key);
	
	@PostMapping("/set")
	public AjaxResult set(@RequestParam("key") String key,@RequestParam("value") String value);

}
